<?php namespace module\photo;
class Handler {
	public function run() {

		$content = Wx::getMessage();
		$OPENID             = $content->FromUserName;
		$user               = Wx::instance( 'User' )->get( $OPENID );
		$data['nickname']   = $user['nickname'];
		$data['headimgurl'] = $user['headimgurl'];
		$data['content']    = $content->Content;
		Db::table( 'plugin_photo' )->insert( $data );
		Wx::instance('message')->text('感谢您参与微信墙活动');
	}
}
